コード例 #1
0
        // Creation from ingame entity before it's removed
        public ConcealedGrid(ConcealableGrid grid)
            : base(grid.Grid as IMyEntity)
        {
            Grid = grid.Grid;
            BigOwners = grid.BigOwners;
            SpawnOwners = grid.SpawnOwners;

            if (Grid == null) {
                Log.Error("Stored cubegrid reference is null", "ctr");
            } else {
                Builder = Grid.GetObjectBuilder() as MyObjectBuilder_CubeGrid;
            }
        }
コード例 #2
0
        // Creation from ingame entity before it's removed
        public ConcealedGrid(ConcealableGrid grid) : base(grid.Grid as IMyEntity)
        {
            Grid        = grid.Grid;
            BigOwners   = grid.BigOwners;
            SpawnOwners = grid.SpawnOwners;

            if (Grid == null)
            {
                Log.Error("Stored cubegrid reference is null", "ctr");
            }
            else
            {
                Builder = Grid.GetObjectBuilder() as MyObjectBuilder_CubeGrid;
            }
        }