Example #1
0
        //// PUBLIC: SPAWNING ENTS, MOVING ROOMS
        public B Spawn <B>(Ents ents, Bank bank) where B : Bod
        {
            B bod = bank.Spawn <B>();

            ents.Add(bod);
            return(bod);
        }
Example #2
0
 public AuthorState_EditPalette() : base()
 {
     Add(paletteGrid = new NavdiGrid(new GridOptions(
                                         name: "authorstate_editpalette_grid",
                                         entityBank: xxi.authorCellBank,
                                         size_cellsInGrid: xxi.options.size_palette,
                                         size_pixelsPerCell: xxi.options.size_gridScreen / xxi.options.size_palette
                                         )));
     Add(cursors = new Ents <AuthorCursor>(1));
 }
Example #3
0
 public AuthorState_Play() : base()
 {
     Add(this.playGrid = new NavdiGrid(new GridOptions(
                                           name: "authorstate_play_grid",
                                           entityBank: xxi.authorCellBank,
                                           size_cellsInGrid: xxi.options.size_gridScreen / xxi.options.size_pixelsInCell,
                                           size_pixelsPerCell: new twin(xxi.options.size_pixelsInCell)
                                           )));
     Add(this.entsSingleScreen  = new Ents <Ents>(permanent: true));
     Add(this.entsAcrossScreens = new Ents <Ents>(permanent: true));
 }
Example #4
0
 public AuthorState_Edit() : base()
 {
     Add(editGrid = new NavdiGrid(new GridOptions(
                                      name: "authorstate_edit_grid",
                                      entityBank: xxi.authorCellBank,
                                      size_cellsInGrid: new twin(xxi.options.size_gridScreen / xxi.options.size_pixelsInCell),
                                      size_pixelsPerCell: new twin(xxi.options.size_pixelsInCell)
                                      )));
     cursorPositions = null;
     Add(cursors     = new Ents <AuthorCursor>());
 }
Example #5
0
 //// PUBLIC: REGISTERING ENTS
 public void RegisterEnts(Ents ents, bool keepAcrossScreens = false)
 {
     (keepAcrossScreens?entsAcrossScreens:entsSingleScreen).Add(ents);
 }