14 [
Attribute(
desc:
"When enabled, the group will use the identity defined in 'Military Symbol' attribute and ignore automatic evaluation.")]
20 protected ref ScriptInvokerBase<SCR_GroupIdentityComponent_OnChange>
m_OnIdentityChange =
new ScriptInvokerBase<SCR_GroupIdentityComponent_OnChange>();
27 return m_MilitarySymbol;
50 if (Replication.IsClient())
55 original.CopyFrom(m_MilitarySymbol);
60 ruleSet.UpdateSymbol(m_MilitarySymbol,
m_Group);
63 if (!m_MilitarySymbol.IsEqual(original) ||
m_iNameID == -1)
67 int nameID = nameManager.GetGroupNameID(m_MilitarySymbol);
76 [
RplRpc(RplChannel.Reliable, RplRcver.Broadcast)]
82 m_MilitarySymbol = symbol;
113 m_MilitarySymbol.OnRplSave(writer);
123 m_MilitarySymbol.OnRplLoad(reader);
140 Print(
"SCR_GroupIdentityComponent must be attached to SCR_AIGroup!", LogLevel.WARNING);