Exemple #1
0
 public ScenarionAction(int scenarioActionId, string dialogName, string dialogText, bool isToLight)
 {
     scenarionActionType   = ScenarionActionType.Dialog;
     this.scenarioActionId = scenarioActionId;
     this.dialogName       = dialogName;
     this.dialogText       = dialogText;
     this.isToLight        = isToLight;
 }
Exemple #2
0
 public ScenarionAction(int scenarioActionId, List <PlayerRecord> createActors, float waitTime, float waitTimeDark, bool isToDark, bool isToLight)
 {
     scenarionActionType   = ScenarionActionType.CreateActor;
     this.scenarioActionId = scenarioActionId;
     this.createActors     = createActors;
     this.waitTime         = waitTime;
     this.waitTimeDark     = waitTimeDark;
     this.isToDark         = isToDark;
     this.isToLight        = isToLight;
 }
Exemple #3
0
 public ScenarionAction(int scenarioActionId, int actorId, HexCoord targetMoveTile, ScenarionActorPivotType actorPivot, float waitTime, float waitTimeDark, bool isToDark, bool isToLight)
 {
     scenarionActionType   = ScenarionActionType.ControlActor;
     this.scenarioActionId = scenarioActionId;
     this.actorId          = actorId;
     this.targetMoveTile   = targetMoveTile;
     this.actorPivot       = actorPivot;
     this.waitTime         = waitTime;
     this.waitTimeDark     = waitTimeDark;
     this.isToDark         = isToDark;
     this.isToLight        = isToLight;
 }
Exemple #4
0
 public ScenarionAction(int scenarioActionId, bool isMoveCamera, HexCoord targetMoveTile, float waitTimeDark, float waitTime, bool isToDark, bool isToLight)
 {
     scenarionActionType   = isMoveCamera? ScenarionActionType.ControlCamera: ScenarionActionType.SetCamera;
     this.scenarioActionId = scenarioActionId;
     if (isMoveCamera)
     {
         this.targetMoveTile = targetMoveTile;
     }
     else
     {
         setCameraPos = targetMoveTile;
     }
     this.waitTimeDark = waitTimeDark;
     this.waitTime     = waitTime;
     this.isToDark     = isToDark;
     this.isToLight    = isToLight;
 }
 public void SetActionName(int id, ScenarionActionType action)
 {
     name           = id.ToString();
     ActorName.text = string.Format("Step:{0},{1}", id, Enum.GetName(typeof(ScenarionActionType), action));
 }