コード例 #1
0
 public MapEventPageStr(MapEventPage mapEventPage, int pageIDNo, MapEventStr mapEventStr)
 {
     Parent                = mapEventStr;
     PageID                = new OutputStructSentence("ページID", pageIDNo.ToString());
     GraphicType           = new OutputStructTable("グラフィックの設定", SetGraphicTypeHeader(mapEventPage.GraphicType), SetGraphicTypeData(mapEventPage, mapEventPage.GraphicType));
     ShadowGraphicNo       = new OutputStructSentence("影グラフィック番号", mapEventPage.ShadowGraphicNo.ToString());
     TriggerConditionsType = new OutputStructSentence("マップイベント起動条件", Utils.WodiKs.ConvertTriggerConditionsToName(mapEventPage.TriggerConditionsType));
     Triggers              = new OutputStructTables("起動条件データ", SetTrigersTableList(mapEventPage));
     ExpandCollisionRange  = new OutputStructTable("接触範囲拡張", SetExpandCollisionRangeHeader(), SetExpandCollisionRangeData(mapEventPage));
     MovementData          = new OutputStructTables("移動情報データ", SetMovementDataTableList(mapEventPage.MovementData));
     SetEventCommandsAndMoveEventCommands(mapEventPage.EventCommandList);
 }
コード例 #2
0
        private List <MapEventPageStr> SetMapEventPageList(MapEventPage[] mapEventPages, MapEventStr mapEventStr)
        {
            var mapEventPageList = new List <MapEventPageStr>();

            for (int pageIDNo = 0; pageIDNo < mapEventPages.Count(); pageIDNo++)
            {
                mapEventPageList.Add(new MapEventPageStr(mapEventPages[pageIDNo], pageIDNo, mapEventStr));
            }

            return(mapEventPageList);
        }