You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

96 lines
4.3 KiB

//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
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<int, CoreGame.Render.CommandCache> 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<int, CoreGame.Render.CommandCache> newCommandCache, int newSeq) {
var entity = rPCRetryEntity;
if (entity == null) {
entity = SetRPCRetry(newCommandCache, newSeq);
} else {
entity.ReplaceRPCRetry(newCommandCache, newSeq);
}
}
public void RemoveRPCRetry() {
rPCRetryEntity.Destroy();
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
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<int, CoreGame.Render.CommandCache> 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<int, CoreGame.Render.CommandCache> 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);
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
public sealed partial class CombatMatcher {
static Entitas.IMatcher<CombatEntity> _matcherRPCRetry;
public static Entitas.IMatcher<CombatEntity> RPCRetry {
get {
if (_matcherRPCRetry == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.RPCRetry);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherRPCRetry = matcher;
}
return _matcherRPCRetry;
}
}
}