internal static string GetClassName(Edict *entity) { // TODO: consider returning empty string? if (entity->v.classname == 0) { return null; } IntPtr ptr = MetaModEngine.engineFunctions.SzFromIndex(entity->v.classname); return Mono.Unix.UnixMarshal.PtrToString(ptr); }
internal Entity(Edict *entity) { this.entity = entity; Pointer = new IntPtr(entity); }