| 112 | } |
| 113 | |
| 114 | MapData::Procedure::ActionCommandId ActionCommandFormString( const char* const str ) |
| 115 | { |
| 116 | using Command= MapData::Procedure::ActionCommandId; |
| 117 | |
| 118 | if( StringEquals( str, "lock" ) ) |
| 119 | return Command::Lock; |
| 120 | if( StringEquals( str, "unlock" ) ) |
| 121 | return Command::Unlock; |
| 122 | if( StringEquals( str, "playani" ) ) |
| 123 | return Command::PlayAnimation; |
| 124 | if( StringEquals( str, "stopani" ) ) |
| 125 | return Command::StopAnimation; |
| 126 | if( StringEquals( str, "move" ) ) |
| 127 | return Command::Move; |
| 128 | if( StringEquals( str, "xmove" ) ) |
| 129 | return Command::XMove; |
| 130 | if( StringEquals( str, "ymove" ) ) |
| 131 | return Command::YMove; |
| 132 | if( StringEquals( str, "rotate" ) ) |
| 133 | return Command::Rotate; |
| 134 | if( StringEquals( str, "up" ) ) |
| 135 | return Command::Up; |
| 136 | if( StringEquals( str, "light" ) ) |
| 137 | return Command::Light; |
| 138 | if( StringEquals( str, "change" ) ) |
| 139 | return Command::Change; |
| 140 | if( StringEquals( str, "death" ) ) |
| 141 | return Command::Death; |
| 142 | if( StringEquals( str, "explode" ) ) |
| 143 | return Command::Explode; |
| 144 | if( StringEquals( str, "quake" ) ) |
| 145 | return Command::Quake; |
| 146 | if( StringEquals( str, "ambient" ) ) |
| 147 | return Command::Ambient; |
| 148 | if( StringEquals( str, "wind" ) ) |
| 149 | return Command::Wind; |
| 150 | if( StringEquals( str, "source" ) ) |
| 151 | return Command::Source; |
| 152 | if( StringEquals( str, "waitout" ) ) |
| 153 | return Command::Waitout; |
| 154 | if( StringEquals( str, "nonstop" ) ) |
| 155 | return Command::Nonstop; |
| 156 | |
| 157 | return Command::Unknown; |
| 158 | } |
| 159 | |
| 160 | static unsigned char ConvertMapLight( const unsigned char map_light ) |
| 161 | { |
no test coverage detected