Beispiel #1
0
 public L2Door(int objectId, CharTemplate template) : base(objectId, template)
 {
     Type   = 1;
     Closed = 1;
     MeshId = 1;
     Level  = 1;
 }
Beispiel #2
0
 public L2Character(int objectId, CharTemplate template) : base(objectId)
 {
     Template      = template;
     CharacterStat = new CharacterStat(this);
     InitializeCharacterStatus();
     Calculators = new Calculator[Models.Stats.Stats.Values.Count()];
     AddFuncsToNewCharacter();
     _updatePositionTime.Elapsed += UpdatePositionTask;
 }
Beispiel #3
0
    void GetRandomData()
    {
        Character curChar = charToSpawn.GetComponent <Character>();

        int rand = Random.Range(0, charTemplates.Count);

        curTemplate = charTemplates[rand];

        float curScale = Random.Range(curTemplate.minSize, curTemplate.maxSize);
        float curForce = Random.Range(curTemplate.minSpeed, curTemplate.maxSpeed);

        charToSpawn.transform.localScale = new Vector3(curScale, curScale, 0);
        curChar.forceSpeed = curForce;
    }
Beispiel #4
0
 public L2StaticObject(int objectId, CharTemplate template) : base(objectId, template)
 {
 }
Beispiel #5
0
 public L2Chair(int objectId, CharTemplate template) : base(objectId, template)
 {
     Closed = 0;
     //MaxHp = 0;
     CharStatus.SetCurrentHp(0);
 }
Beispiel #6
0
 public L2TownMap(int objectId, CharTemplate template) : base(objectId, template)
 {
 }
Beispiel #7
0
 public L2Chair(int objectId, CharTemplate template) : base(objectId, template)
 {
     Closed = 0;
     MaxHp  = 0;
     CurHp  = 0;
 }
Beispiel #8
0
 public L2PvPSign(int objectId, CharTemplate template) : base(objectId, template)
 {
 }