本文整理汇总了C#中Spinner.InitializeContent方法的典型用法代码示例。如果您正苦于以下问题:C# Spinner.InitializeContent方法的具体用法?C# Spinner.InitializeContent怎么用?C# Spinner.InitializeContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Spinner
的用法示例。
在下文中一共展示了Spinner.InitializeContent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateBasicEmptyWorld
private static List<WorldObject> CreateBasicEmptyWorld(ContentManager content)
{
var worldObjects = new List<WorldObject>();
var startingNode = new StartingNode(new Vector2(100, 100));
startingNode.InitializeContent(content);
// var universityLogic = new BindedLogic(new StartUniversity(), true, "Start\nCollege\n-$20k");
// var universityLogic = new BindedLogic(new BlankStory(), true, false, "Story");
// var getMarried = new BindedLogic(new GetMarried(10000), true, false, "Get\nMarried");
// var travelOne = new BindedLogic(new Travel(IslandType.Snow, WorldTransportType.Boat), true, false, "Travel A");
// var minusCash = new BindedLogic(new ModifyCashStory(10000), hasPassLogic: true);
// var universityNode = new BindedLogic(new StartUniversity(), hasPassLogic: true);
var universityPath = new Node(new Vector2(100, 220), true);
universityPath.SetBindedLogic(new BindedLogic(new StartUniversity(), hasPassLogic: true));
universityPath.InitializeContent(content);
startingNode.AddLinkedNode(universityPath);
// var careerLogic = new BindedLogic(new StartCareer(), true, "Start\nCareer");
// var spinToWin = new BindedLogic(new SpinToWin(50000), true, false, "Spin To\nWin\n$50k");
// var travelTwo = new BindedLogic(new Travel(IslandType.City, WorldTransportType.Boat), true, false, "Travel B");
// var giveChild = new BindedLogic(new GiveChild(), true, false, "Acquire\nChild");
//var givePet = new BindedLogic(new GivePet(), true, false, "Get\nPet");
//var buyHouse = new BindedLogic(new BuyHouse(null), true, false, "Buy house");
// var takeExam = new BindedLogic(new TakeExam(), true, true, "Take\nExam");
//var addCash = new BindedLogic(new Nothing(), hasPassLogic: true);
var careerPath = new Node(new Vector2(245, 100), true);
//careerPath.SetBindedLogic(addCash);
careerPath.SetBindedLogic(new BindedLogic(new StartCareer(), hasPassLogic: true));
careerPath.InitializeContent(content);
careerPath.AddLinkedNode(universityPath);
startingNode.AddLinkedNode(careerPath);
universityPath.AddLinkedNode(careerPath);
var spinner = new Spinner(new Vector2(400, 100));
spinner.InitializeContent(content);
worldObjects.Add(startingNode);
worldObjects.Add(universityPath);
worldObjects.Add(careerPath);
worldObjects.Add(spinner);
return worldObjects;
}