Beispiel #1
0
            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;
            }
Beispiel #2
0
            public void AddStructure(int actorHandle, TypeA comp)
            {
                int index;

                if (!_entityLookup.TryGetValue(actorHandle, out index))
                {
                    index = _entityLookup.Count;
                    _entityLookup.Add(actorHandle, index);
                }

                typeA = comp;
            }