public static BuddyVariable FromSFSArray(ISFSArray sfsa) { return(new SFSBuddyVariable(sfsa.GetUtfString(0), sfsa.GetElementAt(2), sfsa.GetByte(1))); }
public static UserVariable FromSFSArray(ISFSArray sfsa) { UserVariable userVariable = new SFSUserVariable(sfsa.GetUtfString(0), sfsa.GetElementAt(2), sfsa.GetByte(1)); if (sfsa.Count > 3) { userVariable.IsPrivate = sfsa.GetBool(3); } return(userVariable); }
public static RoomVariable FromSFSArray(ISFSArray sfsa) { RoomVariable roomVariable = new SFSRoomVariable(sfsa.GetUtfString(0), sfsa.GetElementAt(2), sfsa.GetByte(1)); roomVariable.IsPrivate = sfsa.GetBool(3); roomVariable.IsPersistent = sfsa.GetBool(4); return(roomVariable); }