private void ForceSelectScrollData(int index) { List <IScrollData> data = ScrollDatas; if (index >= 0 && index < data.Count) { ScrollDataIndex = index; ActiveScrollData = data [ScrollDataIndex]; } else { ScrollDataIndex = IndexNone; ActiveScrollData = null; } }
public ActiveItems(Project p) { ActiveArea = p.AreaIndex; ActiveRoom = p.ActiveRoom; ActiveRoomState = p.ActiveRoomState; ActiveTileSet = p.ActiveTileSet; ActiveDoor = p.ActiveDoor; ActiveLevelData = p.ActiveLevelData; ActivePlm = p.ActivePlm; ActivePlmType = p.ActivePlmType; ActiveEnemy = p.ActiveEnemy; ActiveEnemyGfx = p.ActiveEnemyGfx; ActiveEnemyType = p.ActiveEnemyType; ActiveScrollData = p.ActiveScrollData; ActiveScrollColor = p.ActiveScrollColor; ActiveFx = p.ActiveFx; ActiveFxData = p.ActiveFxData; ActiveBackground = p.ActiveBackground; }