author | unc0rr |
Sat, 25 Oct 2014 00:31:10 +0400 | |
branch | qmlfrontend |
changeset 10444 | 47a6231f1fc1 |
parent 10440 | b74a7bbe224e |
child 10450 | bf9e30b4ef9b |
permissions | -rw-r--r-- |
10406 | 1 |
unit uFLTypes; |
10418
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10406
diff
changeset
|
2 |
interface |
10406 | 3 |
|
10428
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10420
diff
changeset
|
4 |
type |
10444
47a6231f1fc1
Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents:
10440
diff
changeset
|
5 |
TMessageType = (mtPreview, mtAddPlayingTeam, mtRemovePlayingTeam, mtAddTeam, mtRemoveTeam); |
10428
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10420
diff
changeset
|
6 |
|
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10420
diff
changeset
|
7 |
TIPCMessage = record |
10418
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10406
diff
changeset
|
8 |
str: shortstring; |
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10406
diff
changeset
|
9 |
len: Longword; |
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10406
diff
changeset
|
10 |
buf: Pointer |
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10406
diff
changeset
|
11 |
end; |
10432 | 12 |
|
10420 | 13 |
TIPCCallback = procedure (p: pointer; msg: PChar; len: Longword); |
10430 | 14 |
TGUICallback = procedure (p: pointer; msgType: TMessageType; msg: PChar; len: Longword); cdecl; |
10406 | 15 |
|
10432 | 16 |
TGameType = (gtPreview, gtLocal); |
17 |
THedgehog = record |
|
18 |
name: shortstring; |
|
19 |
hat: shortstring; |
|
20 |
end; |
|
21 |
TTeam = record |
|
22 |
teamName: shortstring; |
|
23 |
flag: shortstring; |
|
24 |
graveName: shortstring; |
|
25 |
fortName: shortstring; |
|
26 |
owner: shortstring; |
|
27 |
color: shortstring; |
|
28 |
extDriven: boolean; |
|
29 |
botLevel: Longword; |
|
30 |
hedgehogs: array[0..7] of THedgehog; |
|
31 |
hogsNumber: Longword; |
|
10440 | 32 |
end; |
33 |
PTeam = ^TTeam; |
|
10432 | 34 |
|
10406 | 35 |
implementation |
36 |
||
37 |
end. |