示例#1
0
文件: Program.cs 项目: dkwkekzz/Test
            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;
            }
示例#2
0
文件: Program.cs 项目: dkwkekzz/Test
            public void AddStructure(int actorHandle, TypeA comp)
            {
                int index;

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

                typeA = comp;
            }