コード例 #1
0
 // Token: 0x06002A03 RID: 10755 RVA: 0x00104AC0 File Offset: 0x00102EC0
 public static void skillify(EPlayerSkillset skillset)
 {
     Characters.active.skillset = skillset;
     if (Characters.onCharacterUpdated != null)
     {
         Characters.onCharacterUpdated(Characters.selected, Characters.active);
     }
     Characters.active.applyHero();
     Characters.apply();
 }
コード例 #2
0
 public NPCSkillsetCondition(EPlayerSkillset newSkillset, ENPCLogicType newLogicType, string newText) : base(newLogicType, newText, false)
 {
     this.skillset = newSkillset;
 }
コード例 #3
0
 // Token: 0x060029F7 RID: 10743 RVA: 0x001047C0 File Offset: 0x00102BC0
 public Character(ushort newShirt, ushort newPants, ushort newHat, ushort newBackpack, ushort newVest, ushort newMask, ushort newGlasses, ulong newPackageShirt, ulong newPackagePants, ulong newPackageHat, ulong newPackageBackpack, ulong newPackageVest, ulong newPackageMask, ulong newPackageGlasses, ushort newPrimaryItem, byte[] newPrimaryState, ushort newSecondaryItem, byte[] newSecondaryState, byte newFace, byte newHair, byte newBeard, Color newSkin, Color newColor, Color newMarkerColor, bool newHand, string newName, string newNick, CSteamID newGroup, EPlayerSkillset newSkillset)
 {
     this.shirt           = newShirt;
     this.pants           = newPants;
     this.hat             = newHat;
     this.backpack        = newBackpack;
     this.vest            = newVest;
     this.mask            = newMask;
     this.glasses         = newGlasses;
     this.packageShirt    = newPackageShirt;
     this.packagePants    = newPackagePants;
     this.packageHat      = newPackageHat;
     this.packageBackpack = newPackageBackpack;
     this.packageVest     = newPackageVest;
     this.packageMask     = newPackageMask;
     this.packageGlasses  = newPackageGlasses;
     this.primaryItem     = newPrimaryItem;
     this.secondaryItem   = newSecondaryItem;
     this.primaryState    = newPrimaryState;
     this.secondaryState  = newSecondaryState;
     this.face            = newFace;
     this.hair            = newHair;
     this.beard           = newBeard;
     this.skin            = newSkin;
     this.color           = newColor;
     this.markerColor     = newMarkerColor;
     this.hand            = newHand;
     this.name            = newName;
     this.nick            = newNick;
     this.group           = newGroup;
     this.skillset        = newSkillset;
 }
コード例 #4
0
 public SteamPlayer(SteamPlayerID newPlayerID, Transform newModel, bool newPro, bool newAdmin, int newChannel, byte newFace, byte newHair, byte newBeard, Color newSkin, Color newColor, bool newHand, int newShirtItem, int newPantsItem, int newHatItem, int newBackpackItem, int newVestItem, int newMaskItem, int newGlassesItem, int[] newSkinItems, EPlayerSkillset newSkillset, string newLanguage, CSteamID newLobbyID)
 {
     this._playerID    = newPlayerID;
     this._model       = newModel;
     this.model.name   = this.playerID.characterName + " [" + this.playerID.playerName + "]";
     this.model.parent = LevelPlayers.models;
     this.model.GetComponent <SteamChannel>().id      = newChannel;
     this.model.GetComponent <SteamChannel>().owner   = this;
     this.model.GetComponent <SteamChannel>().isOwner = (this.playerID.steamID == Provider.client);
     this.model.GetComponent <SteamChannel>().setup();
     this._player      = this.model.GetComponent <Player>();
     this._isPro       = newPro;
     this._channel     = newChannel;
     this.isAdmin      = newAdmin;
     this.face         = newFace;
     this._hair        = newHair;
     this._beard       = newBeard;
     this._skin        = newSkin;
     this._color       = newColor;
     this._hand        = newHand;
     this._skillset    = newSkillset;
     this._language    = newLanguage;
     this.shirtItem    = newShirtItem;
     this.pantsItem    = newPantsItem;
     this.hatItem      = newHatItem;
     this.backpackItem = newBackpackItem;
     this.vestItem     = newVestItem;
     this.maskItem     = newMaskItem;
     this.glassesItem  = newGlassesItem;
     this.skinItems    = newSkinItems;
     this.skins        = new Dictionary <ushort, int>();
     for (int i = 0; i < this.skinItems.Length; i++)
     {
         int num = this.skinItems[i];
         if (num != 0)
         {
             ushort inventoryItemID = Provider.provider.economyService.getInventoryItemID(num);
             if (inventoryItemID != 0)
             {
                 if (!this.skins.ContainsKey(inventoryItemID))
                 {
                     this.skins.Add(inventoryItemID, num);
                 }
             }
         }
     }
     this.pings    = new float[4];
     this.lastNet  = Time.realtimeSinceStartup;
     this.lastChat = Time.realtimeSinceStartup;
     this.nextVote = Time.realtimeSinceStartup;
     this._joined  = Time.realtimeSinceStartup;
     this.lobbyID  = newLobbyID;
 }
コード例 #5
0
 public SteamPending(SteamPlayerID newPlayerID, bool newPro, byte newFace, byte newHair, byte newBeard, Color newSkin, Color newColor, bool newHand, ulong newPackageShirt, ulong newPackagePants, ulong newPackageHat, ulong newPackageBackpack, ulong newPackageVest, ulong newPackageMask, ulong newPackageGlasses, ulong[] newPackageSkins, EPlayerSkillset newSkillset, string newLanguage, CSteamID newLobbyID)
 {
     this._playerID       = newPlayerID;
     this._isPro          = newPro;
     this._face           = newFace;
     this._hair           = newHair;
     this._beard          = newBeard;
     this._skin           = newSkin;
     this._color          = newColor;
     this._hand           = newHand;
     this._skillset       = newSkillset;
     this._language       = newLanguage;
     this.packageShirt    = newPackageShirt;
     this.packagePants    = newPackagePants;
     this.packageHat      = newPackageHat;
     this.packageBackpack = newPackageBackpack;
     this.packageVest     = newPackageVest;
     this.packageMask     = newPackageMask;
     this.packageGlasses  = newPackageGlasses;
     this.packageSkins    = newPackageSkins;
     this.lastNet         = Time.realtimeSinceStartup;
     this.lastActive      = -1f;
     this.guidTableIndex  = 0;
     this.lobbyID         = newLobbyID;
 }