MapServer.PlayerObject.SetCurrentRandom C# (CSharp) 메소드

SetCurrentRandom() 공개 메소드

public SetCurrentRandom ( int nValue ) : void
nValue int
리턴 void
        public void SetCurrentRandom(int nValue)
        {
            mnCurrentRandom = nValue;
        }

Usage Example

예제 #1
0
 private void Action_Random_Init(ActionInfo info, PlayerObject play)
 {
     String[] option = info.param.Split(' ');
     int min = Convert.ToInt32(option[0]);
     int max = Convert.ToInt32(option[1]);
     play.SetCurrentRandom(IRandom.Random(min, max));
 }