示例#1
0
 public AlignmentSideCommand()
 {
     Aliases           = new[] { "side" };
     RequiredRole      = RoleEnum.GameMaster;
     ParentCommandType = typeof(AlignmentCommands);
     Description       = "Set the alignement side of the given target";
     AddParameter("side", "s", "Alignement side", converter: ParametersConverter.GetEnumConverter <AlignmentSideEnum>());
     AddTargetParameter(true);
 }
示例#2
0
 public TransitionResetCommand()
 {
     Aliases           = new[] { "reset" };
     Description       = "Reset the current map transition";
     RequiredRole      = RoleEnum.Administrator;
     ParentCommandType = typeof(TransitionsCommands);
     AddParameter("transition", "t", "Top/Right/Bottom/Left",
                  converter: ParametersConverter.GetEnumConverter <MapNeighbour>());
     AddParameter("from", "f", "The map to modify", isOptional: true, converter: ParametersConverter.MapConverter);
 }
 public NpcSpawnCommand()
 {
     base.Aliases = new string[]
     {
         "spawn"
     };
     base.RequiredRole  = RoleEnum.GameMaster;
     base.Description   = "Spawn a npc on the current location";
     base.ParentCommand = typeof(NpcsCommands);
     base.AddParameter <NpcTemplate>("npc", "npc", "Npc Template id", null, false, ParametersConverter.NpcTemplateConverter);
     base.AddParameter <Map>("map", "map", "Map id", null, true, ParametersConverter.MapConverter);
     base.AddParameter <short>("cell", "cell", "Cell id", 0, true, null);
     base.AddParameter <DirectionsEnum>("direction", "dir", "Direction", DirectionsEnum.DIRECTION_EAST, true, ParametersConverter.GetEnumConverter <DirectionsEnum>());
 }
 public MonsterSpawnCommand()
 {
     base.Aliases = new string[]
     {
         "spawn"
     };
     base.RequiredRole  = RoleEnum.GameMaster;
     base.Description   = "Spawn a monster on the current location";
     base.ParentCommand = typeof(MonsterCommands);
     base.AddParameter <MonsterTemplate>("monster", "m", "Monster template Id", null, false, ParametersConverter.MonsterTemplateConverter);
     base.AddParameter <sbyte>("grade", "g", "Monster grade", 0, true, null);
     base.AddParameter <sbyte>("id", "id", "Monster group id", 0, true, null);
     base.AddParameter <Map>("map", "map", "Map id", null, true, ParametersConverter.MapConverter);
     base.AddParameter <short>("cell", "cell", "Cell id", 0, true, null);
     base.AddParameter <DirectionsEnum>("direction", "dir", "Direction", DirectionsEnum.DIRECTION_EAST, true, ParametersConverter.GetEnumConverter <DirectionsEnum>());
 }
示例#5
0
 public NpcSpawnCommand()
 {
     Aliases           = new[] { "spawn" };
     RequiredRole      = RoleEnum.Administrator;
     Description       = "Spawn a npc on the current location";
     ParentCommandType = typeof(NpcsCommands);
     AddParameter("npc", "npc", "Npc Template id", converter: ParametersConverter.NpcTemplateConverter);
     AddParameter("map", "map", "Map id", isOptional: true, converter: ParametersConverter.MapConverter);
     AddParameter <short>("cell", "cell", "Cell id", isOptional: true);
     AddParameter("direction", "dir", "Direction", isOptional: true, converter: ParametersConverter.GetEnumConverter <DirectionsEnum>());
 }
 public AlignmentSideCommand()
 {
     base.Aliases = new string[]
     {
         "side"
     };
     base.RequiredRole  = RoleEnum.Moderator;
     base.ParentCommand = typeof(AlignmentCommands);
     base.Description   = "Set the alignement side of the given target";
     base.AddParameter <AlignmentSideEnum>("side", "s", "Alignement side", AlignmentSideEnum.ALIGNMENT_NEUTRAL, false, ParametersConverter.GetEnumConverter <AlignmentSideEnum>());
     base.AddTargetParameter(true, "Defined target");
 }
示例#7
0
 public MonsterSpawnCommand()
 {
     Aliases           = new[] { "spawn" };
     RequiredRole      = RoleEnum.Administrator;
     Description       = "Spawn a monster on the current location";
     ParentCommandType = typeof(MonsterCommands);
     AddParameter("monster", "m", "Monster template Id", converter: ParametersConverter.MonsterTemplateConverter);
     AddParameter <sbyte>("grade", "g", "Monster grade", isOptional: true);
     AddParameter <sbyte>("id", "id", "Monster group id", isOptional: true);
     AddParameter("map", "map", "Map id", isOptional: true, converter: ParametersConverter.MapConverter);
     AddParameter <short>("cell", "cell", "Cell id", isOptional: true);
     AddParameter("direction", "dir", "Direction", isOptional: true, converter: ParametersConverter.GetEnumConverter <DirectionsEnum>());
 }