//------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentContextApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public partial class CombatContext { public CombatEntity rPCRetryEntity { get { return GetGroup(CombatMatcher.RPCRetry).GetSingleEntity(); } } public CoreGame.Render.RPCRetryComponent rPCRetry { get { return rPCRetryEntity.rPCRetry; } } public bool hasRPCRetry { get { return rPCRetryEntity != null; } } public CombatEntity SetRPCRetry(System.Collections.Generic.Dictionary newCommandCache, int newSeq) { if (hasRPCRetry) { throw new Entitas.EntitasException("Could not set RPCRetry!\n" + this + " already has an entity with CoreGame.Render.RPCRetryComponent!", "You should check if the context already has a rPCRetryEntity before setting it or use context.ReplaceRPCRetry()."); } var entity = CreateEntity(); entity.AddRPCRetry(newCommandCache, newSeq); return entity; } public void ReplaceRPCRetry(System.Collections.Generic.Dictionary newCommandCache, int newSeq) { var entity = rPCRetryEntity; if (entity == null) { entity = SetRPCRetry(newCommandCache, newSeq); } else { entity.ReplaceRPCRetry(newCommandCache, newSeq); } } public void RemoveRPCRetry() { rPCRetryEntity.Destroy(); } } //------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public partial class CombatEntity { public CoreGame.Render.RPCRetryComponent rPCRetry { get { return (CoreGame.Render.RPCRetryComponent)GetComponent(CombatComponentsLookup.RPCRetry); } } public bool hasRPCRetry { get { return HasComponent(CombatComponentsLookup.RPCRetry); } } public void AddRPCRetry(System.Collections.Generic.Dictionary newCommandCache, int newSeq) { var index = CombatComponentsLookup.RPCRetry; var component = (CoreGame.Render.RPCRetryComponent)CreateComponent(index, typeof(CoreGame.Render.RPCRetryComponent)); component.commandCache = newCommandCache; component.seq = newSeq; AddComponent(index, component); } public void ReplaceRPCRetry(System.Collections.Generic.Dictionary newCommandCache, int newSeq) { var index = CombatComponentsLookup.RPCRetry; var component = (CoreGame.Render.RPCRetryComponent)CreateComponent(index, typeof(CoreGame.Render.RPCRetryComponent)); component.commandCache = newCommandCache; component.seq = newSeq; ReplaceComponent(index, component); } public void RemoveRPCRetry() { RemoveComponent(CombatComponentsLookup.RPCRetry); } } //------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public sealed partial class CombatMatcher { static Entitas.IMatcher _matcherRPCRetry; public static Entitas.IMatcher RPCRetry { get { if (_matcherRPCRetry == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.RPCRetry); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherRPCRetry = matcher; } return _matcherRPCRetry; } } }