/// <summary> /// Set up Geex Option and Geex Object /// </summary> public void CheckEventOptions() { int pageId = currentPageId == -1 ? 0 : currentPageId; if (this != null && pages[pageId].List != null) { int index = 0; while (index < pages[pageId].List.Length) { EventCommand line = pages[pageId].List[index]; if (line != null) { // Check Geex Make Option or Object if (line.Code == 356 || line.Code == 357) { // Create the Geex Make script MakeCommand.Initialize(line.StringParams); MakeCommand.MapId = InGame.Map.MapId; MakeCommand.EventId = Id; MakeCommand.Start(); } } index++; } } }
public CompositionMakeViewModel(GameInfo gameInfo, Window window) { this.gameInfo = gameInfo; this.window = window; VehicleNums = gameInfo.vehicles.ToDictionary(vehicle => vehicle, _ => 0); QuantUp = new UpCommand(this); QuantDown = new DownCommand(this); Make = new MakeCommand(this); }