public void GetStructure(int actorHandle, out TypeC typeA) { int index; if (!_entityLookup.TryGetValue(actorHandle, out index)) { index = _entityLookup.Count; _entityLookup.Add(actorHandle, index); } typeA = this.typeC; }
public void AddStructure(int actorHandle, TypeA comp) { int index; if (!_entityLookup.TryGetValue(actorHandle, out index)) { index = _entityLookup.Count; _entityLookup.Add(actorHandle, index); } typeA = comp; }