1 using System.Collections.Generic;
11 public readonly
string Name;
16 public float Speed {
get;
private set; }
49 public float Scale {
get;
private set; }
78 foreach (var subElement
in element.Elements())
80 switch (subElement.Name.ToString().ToLowerInvariant())
85 case "deformablesprite":
89 LightSprite =
new Sprite(subElement, lazyLoad:
true);
91 case "deformablelightsprite":
94 case "overridecommonness":
95 Identifier levelType = subElement.GetAttributeIdentifier(
"leveltype", Identifier.Empty);
107 if (generationParams !=
null &&
BackgroundCreaturePrefab(ContentXElement element)
Dictionary< Identifier, float > OverrideCommonness
Overrides the commonness of the object in a specific level type. Key = name of the level type,...
readonly DeformableSprite DeformableSprite
float GetCommonness(LevelGenerationParams generationParams)
readonly Identifier Identifier
static Dictionary< Identifier, SerializableProperty > DeserializeProperties(object obj, XElement element=null)