Пример #1
0
 public static void Assign(this Entity entity, SpawnMsg msg)
 {
     EntityHelper.SetEntityId(entity, msg.Id);
     entity.Get<Nameplate>().Name = msg.Name;
     Assign(entity, msg.CharacterResource);
     Assign(entity, msg.UpdatePosition);
 }
Пример #2
0
 public static SpawnMsg ToSpawnMsg(this Entity entity)
 {
     var msg = new SpawnMsg();
     Assign(msg, entity);
     return msg;
 }