Swing variable added to entities.

This commit is contained in:
Jenny Crowe 2022-02-24 07:12:19 -07:00
parent 8e1013b96a
commit e5e25fa2ab
3 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ namespace RhythmHeavenMania
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public Color colorA; [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public Color colorA;
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public Color colorB; [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public Color colorB;
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public Color colorC; [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public Color colorC;
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public float swing;
public string datamodel; public string datamodel;
[JsonIgnore] public Editor.Track.TimelineEventObj eventObj; [JsonIgnore] public Editor.Track.TimelineEventObj eventObj;

View File

@ -203,7 +203,7 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
canKick = false; canKick = false;
if (ball) if (ball)
ball.highKickSwing = highKicks[i].valA; ball.highKickSwing = highKicks[i].swing;
break; break;
} }
else else

View File

@ -182,7 +182,7 @@ namespace RhythmHeavenMania
new GameAction("keep-up", delegate { }, 4f, true), new GameAction("keep-up", delegate { }, 4f, true),
new GameAction("high kick-toe!", delegate { }, 3f, false, new List<Param>() new GameAction("high kick-toe!", delegate { }, 3f, false, new List<Param>()
{ {
new Param("valA", new EntityTypes.Float(0, 1), "Swing") new Param("swing", new EntityTypes.Float(0, 1), "Swing")
}), }),
}), }),
new Minigame("djSchool", "DJ School \n<color=#eb5454>[Non-Playable]</color>", "008c97", false, false, new List<GameAction>() new Minigame("djSchool", "DJ School \n<color=#eb5454>[Non-Playable]</color>", "008c97", false, false, new List<GameAction>()