areadetect(pos,radius,type,callback)[set(var,val)];
Inheritance: StorySystem.AbstractStoryCommand
 public override IStoryCommand Clone()
 {
     AreaDetectCommand cmd = new AreaDetectCommand();
     cmd.m_Pos = m_Pos.Clone();
     cmd.m_Radius = m_Radius.Clone();
     cmd.m_Type = m_Type.Clone();
     cmd.m_EventName = m_EventName.Clone();
     cmd.m_SetVar = m_SetVar.Clone();
     cmd.m_SetVal = m_SetVal.Clone();
     cmd.m_ElseSetVal = m_ElseSetVal.Clone();
     cmd.m_HaveSet = m_HaveSet;
     return cmd;
 }
Ejemplo n.º 2
0
        protected override IStoryCommand CloneCommand()
        {
            AreaDetectCommand cmd = new AreaDetectCommand();

            cmd.m_Pos        = m_Pos.Clone();
            cmd.m_Radius     = m_Radius.Clone();
            cmd.m_Type       = m_Type.Clone();
            cmd.m_EventName  = m_EventName.Clone();
            cmd.m_SetVar     = m_SetVar.Clone();
            cmd.m_SetVal     = m_SetVal.Clone();
            cmd.m_ElseSetVal = m_ElseSetVal.Clone();
            cmd.m_HaveSet    = m_HaveSet;
            return(cmd);
        }