From 895f9b82f8b1ba9c0f22a38e5f2560a80fdbd26b Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 1 Nov 2023 18:02:21 -0700 Subject: [PATCH] tabs --- src/model.rs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/model.rs b/src/model.rs index ced6401..76f7ba5 100644 --- a/src/model.rs +++ b/src/model.rs @@ -89,9 +89,9 @@ pub struct ContactingLadder{ } #[derive(Clone)] pub enum ContactingBehaviour{ - Surf, - Ladder(ContactingLadder), - Elastic(u32),//[1/2^32,1] 0=None (elasticity+1)/2^32 + Surf, + Ladder(ContactingLadder), + Elastic(u32),//[1/2^32,1] 0=None (elasticity+1)/2^32 } //you have this effect while intersecting #[derive(Clone)] @@ -162,20 +162,20 @@ pub struct GameMechanicZone{ // } #[derive(Clone)] pub enum StageElementBehaviour{ - //Spawn,//The behaviour of stepping on a spawn setting the spawnid - SpawnAt, - Trigger, - Teleport, - Platform, - //Acts like a trigger if you haven't hit all the checkpoints. - Checkpoint{ - //if this is 2 you must have hit OrderedCheckpoint(0) OrderedCheckpoint(1) OrderedCheckpoint(2) to pass - ordered_checkpoint_id:Option, - //if this is 2 you must have hit at least 2 UnorderedCheckpoints to pass - unordered_checkpoint_count:u32, - }, - JumpLimit(u32), - //Speedtrap(TrapCondition),//Acts as a trigger with a speed condition + //Spawn,//The behaviour of stepping on a spawn setting the spawnid + SpawnAt, + Trigger, + Teleport, + Platform, + //Acts like a trigger if you haven't hit all the checkpoints. + Checkpoint{ + //if this is 2 you must have hit OrderedCheckpoint(0) OrderedCheckpoint(1) OrderedCheckpoint(2) to pass + ordered_checkpoint_id:Option, + //if this is 2 you must have hit at least 2 UnorderedCheckpoints to pass + unordered_checkpoint_count:u32, + }, + JumpLimit(u32), + //Speedtrap(TrapCondition),//Acts as a trigger with a speed condition } #[derive(Clone)] pub struct GameMechanicStageElement{