This commit is contained in:
Quaternions 2023-11-01 18:02:21 -07:00
parent 6aa0e790d8
commit 895f9b82f8

View File

@ -89,9 +89,9 @@ pub struct ContactingLadder{
} }
#[derive(Clone)] #[derive(Clone)]
pub enum ContactingBehaviour{ pub enum ContactingBehaviour{
Surf, Surf,
Ladder(ContactingLadder), Ladder(ContactingLadder),
Elastic(u32),//[1/2^32,1] 0=None (elasticity+1)/2^32 Elastic(u32),//[1/2^32,1] 0=None (elasticity+1)/2^32
} }
//you have this effect while intersecting //you have this effect while intersecting
#[derive(Clone)] #[derive(Clone)]
@ -162,20 +162,20 @@ pub struct GameMechanicZone{
// } // }
#[derive(Clone)] #[derive(Clone)]
pub enum StageElementBehaviour{ pub enum StageElementBehaviour{
//Spawn,//The behaviour of stepping on a spawn setting the spawnid //Spawn,//The behaviour of stepping on a spawn setting the spawnid
SpawnAt, SpawnAt,
Trigger, Trigger,
Teleport, Teleport,
Platform, Platform,
//Acts like a trigger if you haven't hit all the checkpoints. //Acts like a trigger if you haven't hit all the checkpoints.
Checkpoint{ Checkpoint{
//if this is 2 you must have hit OrderedCheckpoint(0) OrderedCheckpoint(1) OrderedCheckpoint(2) to pass //if this is 2 you must have hit OrderedCheckpoint(0) OrderedCheckpoint(1) OrderedCheckpoint(2) to pass
ordered_checkpoint_id:Option<u32>, ordered_checkpoint_id:Option<u32>,
//if this is 2 you must have hit at least 2 UnorderedCheckpoints to pass //if this is 2 you must have hit at least 2 UnorderedCheckpoints to pass
unordered_checkpoint_count:u32, unordered_checkpoint_count:u32,
}, },
JumpLimit(u32), JumpLimit(u32),
//Speedtrap(TrapCondition),//Acts as a trigger with a speed condition //Speedtrap(TrapCondition),//Acts as a trigger with a speed condition
} }
#[derive(Clone)] #[derive(Clone)]
pub struct GameMechanicStageElement{ pub struct GameMechanicStageElement{